package pers.mobian.springeighth;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Date 2021/7/25 14:02
 * @Created mobian
 * @Description
 */
public class MainTest {
	public static void main(String[] args) {

		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class);
//		context.addBeanFactoryPostProcessor(null);
		Student student = (Student) context.getBean("student");
		System.out.println(student);


//		ClassPathXmlApplicationContext context1 = new ClassPathXmlApplicationContext("spring-text.xml");
	}
}
